package com.zs.wl.springbootdemo.demos.web;

import com.zs.wl.springbootdemo.demos.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


//@RestController

@Controller
public class UserController {


    @Autowired
    UserService userService;

    @RequestMapping("/getmyuser")
    @ResponseBody
    public String  user() {

        return userService.getUsers().toString();

    }



}
